package cn.weiron.fun.sample.service;


import cn.weiron.fun.infrastructure.dto.PageResult;
import cn.weiron.fun.sample.dto.SamplePointTimeRequestDto;
import cn.weiron.fun.sample.entity.SamplePointTime;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * (SamplePointTime)表服务接口
 *
 * @author makejava
 * @since 2022-07-16 10:36:20
 */
public interface SamplePointTimeService extends IService<SamplePointTime> {

    /**
     * 分页查询
     *
     * @return 查询结果
     */
    PageResult<SamplePointTime> queryByPage(SamplePointTimeRequestDto dto);

    /**
     * 新增数据
     *
     * @param samplePointTime 实例对象
     * @return 实例对象
     */
    SamplePointTime insert(SamplePointTime samplePointTime);


    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    List<SamplePointTime> queryByUniqueId(String item);
}
